﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TienTeTuong.back_end
{
    public partial class ArticleManagement : System.Web.UI.Page
    {
        public List<ArticlecategoryDTO> cates = new List<ArticlecategoryDTO>();
        public List<ArticleDTO> articles = new List<ArticleDTO>();
        public ArticleBUS artBus = new ArticleBUS();
        public ArticlecategoryBUS ctBus = new ArticlecategoryBUS();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Admin"] == null)
            {
                Response.Redirect("Default.aspx");
            }
            cates = ctBus.GetListArticlecategory();
            articles = artBus.GetAllArticle();
        }
    }
}